//
//  FirstSpecialSecondModel.m
//  BTRIP
//
//  Created by dllo on 15/11/22.
//  Copyright © 2015年 johnbk. All rights reserved.
//

#import "FirstSpecialSecondModel.h"
#import "SpecialUserModel.h"
@implementation FirstSpecialSecondModel

- (void)setValue:(id)value forKey:(NSString *)key{
    if ([key isEqualToString:@"description"]) {
                self.textDescription = value;
    }else if ([key isEqualToString:@"description_user_ids"]){
        //字典取值
        NSArray *arr = [value allKeys];
        NSMutableArray *array = [NSMutableArray array];
        
        for (NSString *str in arr) {
            SpecialUserModel *user = [[SpecialUserModel alloc]init];
            user.number = str;
            user.name = value[user.number];
            [array addObject:user];
//            [user release];
        }
        
        _user_idsArray = [array copy];
    }else{
        
        [super setValue:value forKey:key];
    }
    
}

@end
